<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Epigraph: include/expressions.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Epigraph
   </div>
   <div id="projectbrief">Convex Optimization in C++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">expressions.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;parameter.hpp&quot;</code><br />
<code>#include &quot;variable.hpp&quot;</code><br />
<code>#include &lt;Eigen/Sparse&gt;</code><br />
</div>
<p><a href="expressions_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structEigen_1_1NumTraits_3_01cvx_1_1Scalar_01_4.html">Eigen::NumTraits&lt; cvx::Scalar &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a08de5abcb34eb4e16b3a4aaa4f84178b"><td class="memItemLeft" align="right" valign="top"><a id="a08de5abcb34eb4e16b3a4aaa4f84178b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>cvx::MatrixX</b> = Eigen::Matrix&lt; <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a>, Eigen::Dynamic, Eigen::Dynamic &gt;</td></tr>
<tr class="separator:a08de5abcb34eb4e16b3a4aaa4f84178b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7413336d8c61ba31e8192cd4b47c72a"><td class="memItemLeft" align="right" valign="top"><a id="ac7413336d8c61ba31e8192cd4b47c72a"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>cvx::VectorX</b> = Eigen::Matrix&lt; <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a>, Eigen::Dynamic, 1 &gt;</td></tr>
<tr class="separator:ac7413336d8c61ba31e8192cd4b47c72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a684fad62c2a1797e47da4d39361892db"><td class="memItemLeft" align="right" valign="top">Scalar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#a684fad62c2a1797e47da4d39361892db">cvx::par</a> (double p)</td></tr>
<tr class="memdesc:a684fad62c2a1797e47da4d39361892db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a constant parameter.  <a href="expressions_8hpp.html#a684fad62c2a1797e47da4d39361892db">More...</a><br /></td></tr>
<tr class="separator:a684fad62c2a1797e47da4d39361892db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d984e3625f4b93568f4d23ae1545706"><td class="memItemLeft" align="right" valign="top">Scalar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#a1d984e3625f4b93568f4d23ae1545706">cvx::dynpar</a> (double &amp;p)</td></tr>
<tr class="memdesc:a1d984e3625f4b93568f4d23ae1545706"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a dynamic parameter.  <a href="expressions_8hpp.html#a1d984e3625f4b93568f4d23ae1545706">More...</a><br /></td></tr>
<tr class="separator:a1d984e3625f4b93568f4d23ae1545706"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ecf37c5d19e82c84033075b6bd1284a"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a3ecf37c5d19e82c84033075b6bd1284a"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#a3ecf37c5d19e82c84033075b6bd1284a">cvx::par</a> (const Eigen::MatrixBase&lt; Derived &gt; &amp;m)</td></tr>
<tr class="memdesc:a3ecf37c5d19e82c84033075b6bd1284a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a constant parameter from a dense Eigen type.  <a href="expressions_8hpp.html#a3ecf37c5d19e82c84033075b6bd1284a">More...</a><br /></td></tr>
<tr class="separator:a3ecf37c5d19e82c84033075b6bd1284a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c1cb475a8289fb304589123726fc0fc"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a7c1cb475a8289fb304589123726fc0fc"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#a7c1cb475a8289fb304589123726fc0fc">cvx::par</a> (const Eigen::SparseMatrixBase&lt; Derived &gt; &amp;m)</td></tr>
<tr class="memdesc:a7c1cb475a8289fb304589123726fc0fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a constant parameter from a sparse Eigen type.  <a href="expressions_8hpp.html#a7c1cb475a8289fb304589123726fc0fc">More...</a><br /></td></tr>
<tr class="separator:a7c1cb475a8289fb304589123726fc0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1f5fff5f3dcb1998584d30c86a9984d"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:ad1f5fff5f3dcb1998584d30c86a9984d"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#ad1f5fff5f3dcb1998584d30c86a9984d">cvx::dynpar</a> (Eigen::MatrixBase&lt; Derived &gt; &amp;m)</td></tr>
<tr class="memdesc:ad1f5fff5f3dcb1998584d30c86a9984d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a dynamic parameter from a dense Eigen type.  <a href="expressions_8hpp.html#ad1f5fff5f3dcb1998584d30c86a9984d">More...</a><br /></td></tr>
<tr class="separator:ad1f5fff5f3dcb1998584d30c86a9984d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac392e28960cb2ef1d1c6ca0af1f82601"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ac392e28960cb2ef1d1c6ca0af1f82601"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#ac392e28960cb2ef1d1c6ca0af1f82601">cvx::dynpar</a> (Eigen::SparseMatrix&lt; T &gt; &amp;m)</td></tr>
<tr class="memdesc:ac392e28960cb2ef1d1c6ca0af1f82601"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a dynamic parameter from a sparse Eigen type.  <a href="expressions_8hpp.html#ac392e28960cb2ef1d1c6ca0af1f82601">More...</a><br /></td></tr>
<tr class="separator:ac392e28960cb2ef1d1c6ca0af1f82601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11d5ec90b597ad187a911b85516205e6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#a11d5ec90b597ad187a911b85516205e6">cvx::eval</a> (const Scalar &amp;s)</td></tr>
<tr class="memdesc:a11d5ec90b597ad187a911b85516205e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates the scalar.  <a href="expressions_8hpp.html#a11d5ec90b597ad187a911b85516205e6">More...</a><br /></td></tr>
<tr class="separator:a11d5ec90b597ad187a911b85516205e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2899bc4f698d5dd707dfd5e3f0930960"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a2899bc4f698d5dd707dfd5e3f0930960"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#a2899bc4f698d5dd707dfd5e3f0930960">cvx::eval</a> (const Eigen::MatrixBase&lt; Derived &gt; &amp;m)</td></tr>
<tr class="memdesc:a2899bc4f698d5dd707dfd5e3f0930960"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a dense Eigen type.  <a href="expressions_8hpp.html#a2899bc4f698d5dd707dfd5e3f0930960">More...</a><br /></td></tr>
<tr class="separator:a2899bc4f698d5dd707dfd5e3f0930960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f5f881076a6e58c77127f0c989623c8"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a3f5f881076a6e58c77127f0c989623c8"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="expressions_8hpp.html#a3f5f881076a6e58c77127f0c989623c8">cvx::eval</a> (const Eigen::SparseMatrixBase&lt; Derived &gt; &amp;m)</td></tr>
<tr class="memdesc:a3f5f881076a6e58c77127f0c989623c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a sparse Eigen type.  <a href="expressions_8hpp.html#a3f5f881076a6e58c77127f0c989623c8">More...</a><br /></td></tr>
<tr class="separator:a3f5f881076a6e58c77127f0c989623c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26ebc105a8671fa30c55f70d2b092834"><td class="memItemLeft" align="right" valign="top"><a id="a26ebc105a8671fa30c55f70d2b092834"></a>
const Scalar &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>cvx::conj</b> (const Scalar &amp;x)</td></tr>
<tr class="separator:a26ebc105a8671fa30c55f70d2b092834"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2185f7dd1887f183bcc672ffd691b0a2"><td class="memItemLeft" align="right" valign="top"><a id="a2185f7dd1887f183bcc672ffd691b0a2"></a>
const Scalar &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>cvx::real</b> (const Scalar &amp;x)</td></tr>
<tr class="separator:a2185f7dd1887f183bcc672ffd691b0a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a734564dfdd1f78e7149925c6b41abc14"><td class="memItemLeft" align="right" valign="top"><a id="a734564dfdd1f78e7149925c6b41abc14"></a>
Scalar&#160;</td><td class="memItemRight" valign="bottom"><b>cvx::imag</b> (const Scalar &amp;)</td></tr>
<tr class="separator:a734564dfdd1f78e7149925c6b41abc14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a066593d1a7f0f5b5f00bed839d7fdf15"><td class="memItemLeft" align="right" valign="top"><a id="a066593d1a7f0f5b5f00bed839d7fdf15"></a>
Scalar&#160;</td><td class="memItemRight" valign="bottom"><b>cvx::square</b> (const Scalar &amp;x)</td></tr>
<tr class="separator:a066593d1a7f0f5b5f00bed839d7fdf15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b2909fe1c536feb3391f0ca7f0a8dd4"><td class="memItemLeft" align="right" valign="top"><a id="a4b2909fe1c536feb3391f0ca7f0a8dd4"></a>
Scalar&#160;</td><td class="memItemRight" valign="bottom"><b>cvx::abs2</b> (const Scalar &amp;x)</td></tr>
<tr class="separator:a4b2909fe1c536feb3391f0ca7f0a8dd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a1d984e3625f4b93568f4d23ae1545706"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d984e3625f4b93568f4d23ae1545706">&#9670;&nbsp;</a></span>dynpar() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Scalar cvx::dynpar </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a dynamic parameter. </p>
<p>Internally stores pointers to the original values.</p>
<dl class="section warning"><dt>Warning</dt><dd>Do not delete the source before the parameter is no longer required.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>The value of the parameter </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Scalar The constant parameter </dd></dl>

</div>
</div>
<a id="ad1f5fff5f3dcb1998584d30c86a9984d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1f5fff5f3dcb1998584d30c86a9984d">&#9670;&nbsp;</a></span>dynpar() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto cvx::dynpar </td>
          <td>(</td>
          <td class="paramtype">Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a dynamic parameter from a dense Eigen type. </p>
<p>Internally stores pointers to the original values.</p>
<dl class="section warning"><dt>Warning</dt><dd>Do not delete the source before the parameter is no longer required.</dd></dl>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>A dense Eigen type containing problem parameters </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>auto A dense Eigen type with <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> as scalar type </dd></dl>

</div>
</div>
<a id="ac392e28960cb2ef1d1c6ca0af1f82601"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac392e28960cb2ef1d1c6ca0af1f82601">&#9670;&nbsp;</a></span>dynpar() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto cvx::dynpar </td>
          <td>(</td>
          <td class="paramtype">Eigen::SparseMatrix&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a dynamic parameter from a sparse Eigen type. </p>
<p>Internally stores pointers to the original values.</p>
<dl class="section warning"><dt>Warning</dt><dd>Do not delete the source before the parameter is no longer required.</dd></dl>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>A sparse Eigen type containing problem parameters </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>auto A sparse Eigen type with <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> as scalar type </dd></dl>

</div>
</div>
<a id="a2899bc4f698d5dd707dfd5e3f0930960"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2899bc4f698d5dd707dfd5e3f0930960">&#9670;&nbsp;</a></span>eval() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto cvx::eval </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates a dense Eigen type. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>A dense Eigen type to be evaluated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>auto The evaluated dense Eigen type </dd></dl>

</div>
</div>
<a id="a3f5f881076a6e58c77127f0c989623c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f5f881076a6e58c77127f0c989623c8">&#9670;&nbsp;</a></span>eval() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto cvx::eval </td>
          <td>(</td>
          <td class="paramtype">const Eigen::SparseMatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates a sparse Eigen type. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>A sparse Eigen type to be evaluated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>auto The evaluated sparse Eigen type </dd></dl>

</div>
</div>
<a id="a11d5ec90b597ad187a911b85516205e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11d5ec90b597ad187a911b85516205e6">&#9670;&nbsp;</a></span>eval() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cvx::eval </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Evaluates the scalar. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The scalar to be evaluated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>double The value of the scalar </dd></dl>

</div>
</div>
<a id="a3ecf37c5d19e82c84033075b6bd1284a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ecf37c5d19e82c84033075b6bd1284a">&#9670;&nbsp;</a></span>par() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto cvx::par </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a constant parameter from a dense Eigen type. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>A dense Eigen type containing problem parameters </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>auto A dense Eigen type with <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> as scalar type </dd></dl>

</div>
</div>
<a id="a7c1cb475a8289fb304589123726fc0fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c1cb475a8289fb304589123726fc0fc">&#9670;&nbsp;</a></span>par() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto cvx::par </td>
          <td>(</td>
          <td class="paramtype">const Eigen::SparseMatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a constant parameter from a sparse Eigen type. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>A sparse Eigen type containing problem parameters </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>auto A sparse Eigen type with <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> as scalar type </dd></dl>

</div>
</div>
<a id="a684fad62c2a1797e47da4d39361892db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a684fad62c2a1797e47da4d39361892db">&#9670;&nbsp;</a></span>par() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Scalar cvx::par </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a constant parameter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>The value of the parameter </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Scalar The constant parameter </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
